'use strict';
const { Controller } = require('egg');
const { failRes, successRes } = require('../extend/helper');


class cGoods extends Controller {
    // admin

    // user
    async c_wa_query() {
        const { ctx } = this;
        ctx.body = successRes({
            goods: {
                "collected": 0,
                "_id": "1621946872509978488",
                "cid": "6081365dff01b00001b598b0",
                "cids": ["60812f29f61a74000134eee2", "6081365dff01b00001b598b0"],
                "collect": 1,
                "collect_cnt": 1,
                "hot": 0,
                "img": "https://vkceyugu.cdn.bspapp.com/VKCEYUGU-7e00db99-ad65-4b9f-a74b-61bccb92b124/d3164ccc-62a5-46de-baf5-52cc8ff6eecc.jpg",
                "imgs": [{
                    "extname": "jpg",
                    "fileType": "image",
                    "image": {
                        "height": 430,
                        "location": "blob:http://localhost:8082/26d24384-3066-442d-88b1-e0bb224877ca",
                        "width": 323
                    },
                    "name": "200407131303468769.jpg",
                    "path": "https://vkceyugu.cdn.bspapp.com/VKCEYUGU-7e00db99-ad65-4b9f-a74b-61bccb92b124/d3164ccc-62a5-46de-baf5-52cc8ff6eecc.jpg",
                    "size": 33112,
                    "url": "https://vkceyugu.cdn.bspapp.com/VKCEYUGU-7e00db99-ad65-4b9f-a74b-61bccb92b124/d3164ccc-62a5-46de-baf5-52cc8ff6eecc.jpg"
                }, {
                    "extname": "jpg",
                    "fileType": "image",
                    "image": {
                        "height": 430,
                        "location": "blob:http://localhost:8082/e299d0cb-7ce1-4490-afdf-b3962511d7fc",
                        "width": 323
                    },
                    "name": "200407131367549877.jpg",
                    "path": "https://vkceyugu.cdn.bspapp.com/VKCEYUGU-7e00db99-ad65-4b9f-a74b-61bccb92b124/6f015b13-8d0a-48c0-b26d-188305402af7.jpg",
                    "size": 24736,
                    "url": "https://vkceyugu.cdn.bspapp.com/VKCEYUGU-7e00db99-ad65-4b9f-a74b-61bccb92b124/6f015b13-8d0a-48c0-b26d-188305402af7.jpg"
                }],
                "last_modify_uid": "607e63e021576100016eded3",
                "last_modify_uname": "admin",
                "limit": 100,
                "limited": 0,
                "market_price": 199800,
                "name": "上衣衬衫女",
                "name_pw": "Miss Sixty2020春季新款立体网纱袖设计感上衣衬衫女601XJ0640000",
                "price": 149900,
                "sale": 1,
                "sale_cnt": 2,
                "share": 1,
                "share_cnt": 1,
                "share_desc": "Miss Sixty2020春季新款立体网纱袖设计感上衣衬衫女601XJ0640000",
                "share_img": "https://vkceyugu.cdn.bspapp.com/VKCEYUGU-7e00db99-ad65-4b9f-a74b-61bccb92b124/39ef1a5d-a490-440a-b790-861a51588f44.jpg",
                "share_title": "上衣衬衫女",
                "skus": "{\"spec_s\":\"规格\",\"spec\":[\"白色\",\"蓝色\"]}",
                "sold_out_time": "2029-05-11 00:00:00",
                "sort": 14,
                "state": "销售中",
                "stock_num": 102,
                "tags": ["服装", "假一赔四", "极速退款", "7天无理由退换"],
                "visit": 1,
                "visit_cnt": 1
            },
            tagDatas: [{
                "name": "服装",
                "selected": true
            }, {
                "name": "假一赔四",
                "selected": false
            }, {
                "name": "极速退款",
                "selected": false
            }, {
                "name": "7天无理由退换",
                "selected": false
            }]
        });
    }
}

module.exports = cGoods;